﻿
#ifndef __PROTOCOL_H__
#define __PROTOCOL_H__

#include <stdio.h>
#include <stdarg.h>
#include <sys/msg.h>
#include<algorithm>

#include "Net.h"

using namespace std;

#pragma pack (1) 
typedef struct _COMM_PKG_HEADER
{
	//char						sFixMark[2];
	unsigned short 	ucheck;
	unsigned short 	sCommandId;
	unsigned int	nDevID;
	unsigned short	sDataLen;
	char						Data[0];
}COMM_PKG_HEADER, NET_TCP_HEAD,*LPCOMM_PKG_HEADER;

#pragma pack()

typedef struct _STRUC_MSG_HEADER
{
	sClient							*p_Conn;        
	uint64_t						iCurrsequence;
}STRUC_MSG_HEADER, * LPSTRUC_MSG_HEADER;

#endif
